﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using BEPUphysics.Entities;

namespace PloobsEngine.Physics.Bepu
{
    public class SphereObject : BepuEntityObject
    {
        
        public SphereObject(Vector3 pos, float raio, float mass)
            : base(mass)
        {
            entity = new Sphere(pos, raio,mass);
            scale = new Vector3(raio);
        }

        public SphereObject(Vector3 pos, float raio, float mass,Vector3 scale)
            : base(mass)
        {
            this.scale = scale;
            entity = new Sphere(pos, raio * scale.Y, mass);
            scale = new Vector3(raio);
        }
        public SphereObject(Vector3 pos, float raio)
            : base(0)
        {
            entity = new Sphere(pos, raio);
            scale = new Vector3(raio);
        }

        public override PhysicObjectTypes PhysicObjectTypes
        {
            get { return PhysicObjectTypes.SPHEREOBJECT; }
        }
    }
}
